export default {
  props: {
    exportSelectKey: {
      type: String
    },
    sxExportConfig: {
      type: [Object]
    },
    reportExportKey: {
      type: String
    }
  },
  data() {
    return {
      sxTableExportVisible: false,
      selections: {
        selected: [],
        all: []
      }
    }
  },
  methods: {
    // 导出表单
    exportTableData() {
      this.selections.selected = this.getSelections()
      this.selections.all = this._getTableData().fullData
      this.sxTableExportVisible = true
    },
    // 导出固定表单
    exportTableReportData() {
      if (this.reportExportKey) {
        return this.$refs.tableReportExport.export()
      }
    }
  }
}
